import java.util.Random;

/**
 * 
 */

/**
 * @author terratack
 *
 */
public class Deck {
	private String[] default_deck = {"2-spade", "2-heart", "2-diamond", "2-club",
									"3-spade", "3-heart", "3-diamond", "3-club",
									"4-spade", "4-heart", "4-diamond", "4-club",
									"5-spade", "5-heart", "5-diamond", "5-club",
									"6-spade", "6-heart", "6-diamond", "6-club",
									"7-spade", "7-heart", "7-diamond", "7-club",
									"8-spade", "8-heart", "8-diamond", "8-club",
									"9-spade", "9-heart", "9-diamond", "9-club",
									"10-spade", "10-heart", "10-diamond", "10-club",
									"J-spade", "J-heart", "J-diamond", "J-club",
									"Q-spade", "Q-heart", "Q-diamond", "Q-club",
									"K-spade", "K-heart", "K-diamond", "K-club",
									"AS-spade", "AS-heart", "AS-diamond", "AS-club"};
	private int[] card_place = new int[52];
	public String[] game_deck = new String[52];
	
	Deck(){
		Random gen1 = new Random(); //losowanie miejsca w default_deck
		Random gen2 = new Random(); //losowanie miejsca do zapisu w game_deck
		for(int i = 0; i < 52; i++){ 
			card_place[i] = 1;
			game_deck[i] = "";
		}
		int help = 1;
		while(help != 52){
			int x = gen1.nextInt(51);
			int y = gen2.nextInt(51);
			if(card_place[x] == 1 && game_deck[y].compareTo("") == 0){
				game_deck[y] = default_deck[x];
				help++;
				card_place[x] = 0;
			}
		}
		//for(int i = 0; i < 52; i++) System.out.println(game_deck[i]);
	}
}
